<?php
require(PUBLIC_PATH."header.php");

?>
<div class="col-sm-9 col-sm-offset-3 col-md-10 col-md-offset-2 main">
          <div class="table-responsive">
          <h1 class="page-header">视频类别列表</h1>
          <a class="btn btn-primary btn-xs" <?php echo ' href="'.SITE_ROOT.'/admin.php?c=videotype&m=form"'; ?> role="button">添加</a>
	          <table class="table table-striped table-hover">
	            <tr>
					<th>ID</th>
					<th>视频类别</th>
					<th>操作</th>
				</tr>	
<?php 
			foreach ($data['list'] as $one) {
		        echo '<tr>';
		        echo '<td>'.$one['tid'].'</td>';
				echo '<td>'.$one['typename'].'</td>';
				
				echo '<td><a href="'.SITE_ROOT.'/admin.php?c=videotype&m=mod&id='.$one['tid'].'">修改</a>';
				echo '|<a href="'.SITE_ROOT.'/admin.php?c=videotype&m=delete&id='.$one['tid'].'">删除</a></td>';
				echo "</tr>";
			}
 ?>                 
    		   </table>
		</div>
</div>
<?php  
	require(PUBLIC_PATH."footer.php");
?>